package com.tongzhan.entity;

import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Data
@Document(collection = "FileInfo")
public class FileInfo extends BaseModel {
    @Id
    private String _id;
    @PrimaryKey
    @Field("FileCode")
    private String fileCode;
    @Field("Path")
    private String path;
    @Field("Desc")
    private String desc;
    @Field("Type")
    private String type;
    @Field("TypeCode")
    private String typeCode;
    @Field("CreateTime")
    private LocalDateTime createTime;
    @Field("Access")
    private String access;
    @Field("ForeignKey")
    private String foreignKey;
    @Field("Name")
    private String name;
}
